package com.dragon.pear.modules.trade.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.dragon.common.spring.business.base.BaseCrudController;
import com.dragon.pear.modules.trade.domain.entity.TradeGoodsAttrEntity;
import com.dragon.pear.modules.trade.web.model.params.create.TradeGoodsAttrCreateParam;
import com.dragon.pear.modules.trade.web.model.params.update.TradeGoodsAttrUpdateParam;
import com.dragon.pear.modules.trade.web.model.params.search.TradeGoodsAttrSearchParam;
import com.dragon.pear.modules.trade.web.model.params.order.TradeGoodsAttrOrderParam;
import com.dragon.pear.modules.trade.web.model.results.TradeGoodsAttrResult;
import com.dragon.pear.modules.trade.dao.repository.TradeGoodsAttrRepository;
import com.dragon.pear.modules.trade.service.assistants.converters.TradeGoodsAttrConverter;
import com.dragon.pear.modules.trade.service.def.TradeGoodsAttrService;
import com.dragon.pear.modules.trade.web.api.TradeGoodsAttrApi;

/**
 * @author Chris Chan
 * Create on 2025-09-30 22:06
 * Use for: 商品属性关联 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("trade/goods/attr")
public class TradeGoodsAttrController implements TradeGoodsAttrApi, BaseCrudController<
        TradeGoodsAttrEntity,
        TradeGoodsAttrCreateParam,
        TradeGoodsAttrUpdateParam,
        TradeGoodsAttrSearchParam,
        TradeGoodsAttrOrderParam,
        TradeGoodsAttrResult,
        TradeGoodsAttrRepository,
        TradeGoodsAttrConverter,
        TradeGoodsAttrService
        > {

    @Autowired
    TradeGoodsAttrService tradeGoodsAttrService;

    @Override
    public TradeGoodsAttrService getService() {
        return tradeGoodsAttrService;
    }
}